package com.luhui.controller;

import com.luhui.dubbo.consumer.SayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author luhui
 * @version 1.0
 * @date 2019/6/8 0:53
 */
@RestController
public class SayHelloController {
    @Autowired
    private SayService sayService;

    @GetMapping("say")
    public String say(String name){
        return sayService.sayHello(name);
    }
}
